package lib.quasar.db.table;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * description: 计步器
 * created by kalu on 2018/4/4 9:48
 */
@Entity
public final class Pedometer {

    @Id(autoincrement = true) // 主键自增
    private Long id_;

    //当天时间，只显示到天 yyyy-MM-dd
    private String today = "";
    //步数时间，显示到毫秒
    private long date;
    //对应date时间的步数
    private long step;

    @Generated(hash = 1695040663)
    public Pedometer(Long id_, String today, long date, long step) {
        this.id_ = id_;
        this.today = today;
        this.date = date;
        this.step = step;
    }

    @Generated(hash = 600243709)
    public Pedometer() {
    }

    /***********************************************/

    public Long getId_() {
        return id_;
    }

    public void setId_(Long id_) {
        this.id_ = id_;
    }

    public String getToday() {
        return today;
    }

    public void setToday(String today) {
        this.today = today;
    }

    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public long getStep() {
        return step;
    }

    public void setStep(long step) {
        this.step = step;
    }
}
